package cn.panda.edu.dao;

import cn.panda.edu.model.StudyResource;

import java.util.List;
import java.util.Map;

/**
 * 
 * 类描述：  资源操作相关操作
 */
public interface StudyResourceMapper {
	/**
	 * 
	* @Title: selectByPageAndCondition 
	* @Description: 根据条件查询资源并分页 
	* @param pageIndex
	* @param condition
	* @return  
	* List<StudyResource>
	 */
	List<StudyResource> selectByPageAndCondition(Integer pageIndex, Map<String, String> condition) ;
	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: 通过id删除资源
	* @param resourceId
	* @return  
	* int
	 */
    int deleteByPrimaryKey(Integer resourceId);

    /**
     * 
    * @Title: insert 
    * @Description: 插入
    * @param record
    * @return  
    * int
     */
    int insert(StudyResource record);

    /**
     * 
    * @Title: insertSelective 
    * @Description: 局部插入
    * @param record
    * @return  
    * int
     */
    int insertSelective(StudyResource record);

    /**
     * 
    * @Title: selectByPrimaryKey 
    * @Description: 查询
    * @param resourceId
    * @return  
    * StudyResource
     */
    StudyResource selectByPrimaryKey(Integer resourceId);

    /**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description: 局部更新
    * @param record
    * @return  
    * int
     */
    int updateByPrimaryKeySelective(StudyResource record);

    /**
     * 
    * @Title: updateByPrimaryKey 
    * @Description: 更新
    * @param record
    * @return  
    * int
     */
    int updateByPrimaryKey(StudyResource record);
}